<%--
  Created by IntelliJ IDEA.
  User: User
  Date: 2024/5/15
  Time: 9:07
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
    <head>
        <title>访问次数</title>
    </head>
    <body>
        <h1>当前页面访问次数:<%=request.getSession().getAttribute("count")%></h1>
        <a href="<%=response.encodeURL(request.getContextPath()+"/count")%>">URL重写方式一</a>
        <a href="<%=response.encodeRedirectURL(request.getContextPath()+"/count")%>">URL重写方式二</a>
    </body>
</html>
